from django.db import models

# Create your models here.
from goodsapp.models import BaseModel

# 1 用户模型
class User(BaseModel):
    # 用户名
    name = models.CharField(max_length=20)
    # 密码
    password = models.CharField(max_length=128)
    # 确认密码
    pwd2 = models.CharField(max_length=128,default=0)
    # 状态 0表示未激活 1表示激活
    status = models.IntegerField(default=0)
    # 邮箱
    email = models.EmailField()


















